import { CSSTransitionProps } from "react-transition-group/CSSTransition";

// 继承CSSTransitionProps接口，并添加自定义属性
export type TransitionProps = CSSTransitionProps & {
    // 四种方向的进场动画
    animation?: 'zoom-in-top' | 'zoom-in-left' | 'zoom-in-bottom' | 'zoom-in-right';
    children?: React.ReactNode;
}